package com.WaVel.service.impl;

import com.Emplyment.entity.Article;
import com.Emplyment.entity.InterView;
import com.Emplyment.entity.QuestionBank;
import com.WaVel.mapper.ArticleMapper;
import com.WaVel.service.TaskService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@Slf4j
public class TaskServiceImpl implements TaskService {

    @Autowired
    private ArticleMapper articleMapper;

    @Override
    public List<Article> getHotCompany() {
        List<Article> hotCompany = articleMapper.getHotCompany();
        log.info("热点公司数据为：: " + hotCompany);
        return hotCompany;
    }

    @Override
    public List<QuestionBank> getHotInterview() {
        List<QuestionBank> hotInterview = articleMapper.getHotInterview();
        log.info("热点面试问题为：: " + hotInterview);
        return hotInterview;
    }
}
